def my_write(s):
    file=open('b.text',"a",encoding='utf-8')
    file.write(s)
    file.close()
def write_list(file,lst):
    f=open(file,'w',encoding='utf-8')
    f.writelines(lst)
    f.close()
if __name__=='__main__':
    lst=['名字\t','年龄\t','成绩\n','mwy\t','17\t','100\n']
    write_list('c.text',lst)
    my_write('mwy')